//
//  CommendTest.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/9.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "CommendTest.h"
#import "Receiver.h"
#import "MyCommend.h"
#import "Invoker.h"

@implementation CommendTest
-(void)commendInvoker
{
    Receiver * receiver = [[Receiver alloc]init];
    MyCommend * commend = [[MyCommend alloc]init];
    [commend commendWithReceiver:receiver];
    Invoker * invoker = [[Invoker alloc]init];
    [invoker invokerWithCommend:commend];
    [invoker action];
}

@end
